<?php

function getLabel($id, $pageID){
  // Define the parameters that will be used
  $foo0 = $id; 
  $foo1 = $pageID;

  // Build the system command that will be called
  $cmd='./GetServiceLabel.pl '.EscapeShellArg($foo0).' '.EscapeShellArg($foo1);

  // Execute the shell command
  $returnval = exec($cmd, $output, $result); 

  //Get label
  $Labelz = $output[0];

  if($Labelz == "ErrorCode626") { print "Service temporarily unavailable."; }

  //Return label
  return $Labelz;
}

?>
